package com.cjb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户角色关联表
 * </p>
 *
 * @author kuangjian
 * @since 2022-08-30
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("tb_user_role")
@ApiModel(value = "UserRole对象", description = "用户角色关联表")
public class UserRole extends Model<UserRole> {

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("角色ID")
    @TableField("role_id")
    private Long roleId;


    @Override
    public Serializable pkVal() {
        return null;
    }

}
